UI now has some logic. Added invalid key to db. There is a possible reduce overflow. Will test tomorrow.