frontend: start work on a design, restructure the DB