changed type to a struct in NewDB repsonse