fixed #8
get timestamp of latest entry directly from database
added safety delay when downloading