Code refractored.added support for database(multi storages) and users directories.Not worked now.