New MYSQL Function & Check Fixes