Write contents of database to 'current_model.txt' upon boot.