Replace print statements with logging
IF table.initialize fails delete the table
Raise exception if fetch_by_{iamge,roi} return []
Automatically cast imageid/roiid to long in fetch_by_{image,roi}
Minor code cleanup, add logging