Added database functionality

implemented database related classes for the capture the moment feature.
Data Access Objects (DAO) and Business objects.