Minor cleanup

* Use self instead of static for class constants
* Use strict checking for comparisons
Created an exists method to check for rows without fetching