install: Fix query syntax error due to missing comma
mod_survey: Work around mod_survey initialization error

Prevent database deadlock by doing the queries async after a delay. Not
the most beautiful solution, but it appears to work.

Fixes #734

See issue #497 for the discussion on the "proper" solution.