Changes to the db methods