script that creates database structure