#76 Refactoring insertQuery Method