static uint8_t md_sqlite_conn_dump_db(struct md_writer_sqlite *mws, FILE *output)
{
    sqlite3_reset(mws->dump_table);
    sqlite3_reset(mws->dump_update);

    sqlite3_bind_int64(mws->dump_table, 1, mws->dump_tstamp);
    sqlite3_bind_int64(mws->dump_update, 1, mws->dump_tstamp);

    if (md_sqlite_helpers_dump_write(mws->dump_table, output) ||
            md_sqlite_helpers_dump_write(mws->dump_update, output))
        return RETVAL_FAILURE;
    else
        return RETVAL_SUCCESS;
}
static uint8_t md_sqlite_monitor_dump_db(struct md_writer_sqlite *mws, FILE *output)
{
    sqlite3_reset(mws->dump_monitor);
    
    if (md_sqlite_helpers_dump_write(mws->dump_monitor, output))
        return RETVAL_FAILURE;
    else
        return RETVAL_SUCCESS;
}