New version of DB interface code now working correctly