fixed critical performance issue

urls requested the database if [] given as urls parameter!