Added a slowish database writing method (needs to be changed)
Revert "Added a slowish database writing method (needs to be changed)"

This reverts commit 8d0f6cae84122cc7ad7c8d29d2ad58a1600c17f2.
Added a bit better data saving
Merge branch 'database_writing'

Added a bit better database saving.