Implemented Database Read for Offline Mode