remove application from database before install a new one