fixes hstore_pattern
fixes db schema for support prepared entry
fixes prepared entry