Update application to db