Drop unused import re, stat in installation/database.py
Silence assigned-but-not-used warning for "error" in linter
Drop unused import 'json' in apache.py
Abort installation if dbschema.sql contains invalid SQL
Use "-v ON_ERROR_STOP=1" when invoking psql to make sure errors are not suppressed.