legacy db connection