Improved database reconnect since the old code does not work for every engine. Database errors in the white- and blacklist also result in STATUS_BAD_REQUEST now to protect web applications from unexpected problems.