Added ConnectionHandler to process SQL queries