database: added function getNames