change domain module: getting current domain name from the database; progress has been added;