fixed packages cache and database config. load modules.