Added (non-real-time) database support
Complete database and file save