DB operations and date and time picker