Add 'app.db.flush_sessions' for testing
add as-yet failing tests
Read from and write to the badpenny logs table
load logs in the frontend