Fix syntax in sqlite method.