add more db schema, add tversky algorithm