making database and app link dynamic