Version number fix along with SQL statement fix.