database query gets currect minutes