Allow multiple sql queries

Add "_" to the start of "private" helper functions

Add __all__ variable listing "public" functions

Address pylint complaints