better error
not a status page (for now)
- moved error page setup into startup script
- moved database setup to debug mode only
url fix and syntax cleanup