Create directory for database file if it does not exist