Update database data and tables