Multiple database handling
Changed redirect test to isOk