BUG - Database not saving data

Fixes #60