Created checker library, fixed SQL!