remove obsolete "database" code