Updated a db method