public function execute()
    {

        try {
            // load the class definitions
            $classes = $this->getEntityManager()->getMetadataFactory()->getAllMetadata();

            // create a new database instance
            $this->getSchemaTool()->createSchema($classes);

        } catch (\Exception $e) {
            $this->getApplication()->getInitialContext()->getSystemLogger()->error($e->__toString());
        }
    }