fixed the update database and added little documentation to detect module for easier use cases