Fix PostgreSQL backend for spectrum

- fix SET to WHERE in statements in removeUser()
- fix user_settings to users_settings in removeUser()
- fix missing m_prefix in INSERT INTO db_version