DB querying should work correctly now