Added update and delete database methods