Added generate_database sql script