Changed createConnection in favor of using createPool