Update database code updated