added user support in stream db, updated rule api.