Fixed DB problem and added print out to API test