Create command for SQL script somewhat working