Fixed bug with multiple SQLite databases open at once.
Merge pull request #313 from APriestman/develop

Fixed bug with multiple SQLite databases open at once.