database fro date, save state for detail fragment