Fixed issue with DB initialization and calendar scrolling