updated sql-merged tables