proper logging when creating database