Add database, shared database

Uses Sequel ORM gem backed by SQLite3 for ease of deployment and
portability
Add autostart adapter bot setting
Add login feedback, fix logout crash