fix for connection on a different database