connecting active record with existing DB