saving username if doesn't exist in db
check if user/app combination aleady in db