Implemented the SQL connection for the program.