Base classes and connection functionality added for SQL