Finished merge
DB connection on deviceready
draft to register preferences
fixing pull
fixing pull
fixing pull
fixing pull
reduce database storage size
Merge pull request #5 from adrichman/databaseStuff

starting database stuff