always use HTTP 500 status on errors; cleaned up error on selecting bad mysql table; better error if session engine fails to init