changed select application list query for database, to handle description table