Fix: use configured database and table name instead of hard coded one.