Fixed a typo in the db calls