get devices version of current time and database and compare