Frontend legacy issues and src migration
More legacy and deprecated functions change to new J3
import filesystem
administrator replace deprecated functions. Fix SQL order.