BUG: Fixing a undefined error on install

Received a undefined variable warning for $error when installing on 3.1this pull request fixes it by declaring the variable earlier in the requireDatabaseServer function