Installing and upgrading plugin database tables