Merged sql database script