Major database overhaul

- Renamed stuff, formatting, framework etc
- added due data and reminder persistence
- cleaned code. compontentized several things
- prepared for testing
- made save button have some functionality
- ui improvements