mysql orm basic implementation