Final update of database tables