Database setup and workout saving with json serialization