Added a function that get the apps names from db.