Edited the SQL and Command classes a little