add support for periodic irrigation based on db data