write app name to DB