UTF8, Query method fix

When pdo object is initialized the encoding is set to utf8.
when writing sql statements with lower case the query method will 
call the correct method instead of returning null.