moved all SQL queries into single Database module

Does it matter with a read only database?

On Fri, Dec 12, 2014 at 4:26 PM, Tavi Nathanson <notifications@github.com>
wrote:
>
> In pyensembl/database.py
> <https://github.com/hammerlab/pyensembl/pull/16#discussion-diff-21774425>:
>
> > +
> > +        strand : str, optional
> > +            Either the positive ('+') or negative strand ('-'). If unspecified
> > +            then check for values on either strand.
> > +        """
> > +        return self.column_values_at_locus(
> > +            column,
> > +            feature,
> > +            contig,
> > +            position,
> > +            end=end,
> > +            strand=strand,
> > +            distinct=True,
> > +            sorted=True)
> > +
> > +    def run_sql_query(self, sql, required=False, query_params=[]):
>
> Are you closing the connection?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/hammerlab/pyensembl/pull/16/files#r21774425>.
>