connect to the right db