DB test implementet in code