Increment database filename for mac, use printf for logging on mac