Update test case to use Manager instead of directly create Database instance.