Added interface for SQL connection
just commiting before I die in mexico.