create plugin path for database only right before storing it in the database (otherwise the command cannot find vital files), fixes #701