mod_survey: Fixes in m_survey for stricter pgsql parameter type checking