Database mock added to constructor