wip: update db api
wip: use format for schema name insertion