DBAccess and Config classes

Add a database access class and configuration class