Patch add entry in Database function