Change version from beta2 to rc
Removed unused variable
Fix cpp check errors
Allow compilation with both MySQL and PostGreSQL