added DB functionality

helper class to interact with the SQLite3 DB