switched true/false to 1/0, trying out function to restore from db
all info about an app stored in one array, retrieving app info from db via function