Completed video 28 Created functions for open/close connection and query