Working on the api, trying to get departments back from postgres in correct format