SQL script for creating database