added update function to db helper