Add app_code, app_year, app_number to applications, populate with hook. Update rake task to write apps to DB :)