Refactored code
Overloaded the select methode to support a more convenient way to use it. Also add a private rawQuery methode to avoid redundancy