Improve keyboard nav
Fix delete dialog
Move DB to common.js