Enforce type checking on array parameters

Removed all unnecessary third parameters when calling
DBConnection::query()