updated to build backend database,refer comments in file