Supporting security and consistency for cloud database