Made an selftest for DB access