new db implemented, not yet tested