Got database to work

Database support added to app. Still need to include more data and
start creating alarm functionality.