script for creating database