Added possibility to have multiple databases open at the same time or in the same python session.