updates to db script for the mac