Adjusted optionals in SQLWrapper to satisfy Xcode 6.1