working on the database access from the Topic