Create a separate failed database

Also added a web UI