Fixed original implementation, which did not support opening multiple, different database connections with this library