now able to update database