Implemented database read for online mode