corrected database create script