Add setPsName and support for new database.

Signed-off-by: bregell <johan_bregell@hotmail.com>