library controller and tools refactoring (fibers)
refactored database initialization code (fibers)