add generic orm support