changed the db call