adapted to postgresql testserver database