Update and delete from database added