Look at your code: What part of this looks wrong?
command.CommandText = "CREATE DATABASE " + database;
command.ExecuteNonQuery();
conn.Close();
command.ExecuteNonQuery();
conn.Close();
0) Why are you executing the same command twice? To be sure, to be sure?
1) What do you suppose is going to happen when you try to execute it the second time, having just closed the connection?