Save runs to database

Created the database to save the runs locally. Saved using the internal sqlite engine. Causes the runs to be saved after the "done" button is pressed. The done button also adds a lap