Adding release switch to MainActivity. Switch to private database if release state is set
Generate new database key if none available. Fix database structure error