Removed legacy db and non-harmony functions