added application to database