Backend implementation

Use sqlite3 for convenience.
Change field names/types
Add frontend