adding sqlQuery to common library