Bugfix: db still dropped/recreated on deploy

Ensure we query from the database.