working on the database module