added functionality to install and upgrade the internal database tables