Database schema for imaging tables