added rough interface and code to interact with database class