patch db empty on first load fix