added script to create main database