- extended funtionallity

- save every 15 secs to db (bug: some fields are duplicated)
- added dbcontext for db
- moved function determineSource from EnergyController to Model (now it
is called every time it is instanciated)