Added an extra validation to allow to update daily records only when the new record is newer than the existing one.

Added some indexes to daily and transactions.