Database setup script