postgresql schema for dotspotting