Configure CMake with mysql and postgresql backends