Complete and compare database in SQL server