update of database code