Fix image DB schema