added class library with database queries and db