Moved the CRUD functions to facet-core

Signed-off-by: license2e <ilya@shindyapin.com>