added a single dbmanager for all tables for simplicity, still keeping the old implementation