added the ability to apply a custom sql query by passing a query string
added the ability to put the full path to the database without tnsnames in the constructor