This should make this work with multiple DBs