Changes to db methods