Issue #5

Changed the query function to return the number of rows affected if the query is not a SELECT query. This should remove general errors from being returned as a result of a successful query.