added applied date to profile. chenged db to local mysql again as it is independent of heroku db