Fixed Mac OS database access