Implement database setup script.