Add function to save database to file
Add db load