Make db client possible to serialize due to tests