add datetime support, normalize query name and balance account name