Implements connexion to database and DAO for fetching marks and edges