fix STI host error in mysql and sqlite