change usage to be more extensible with different dbs and syncs