adjust for empty database