Add debug logs for creating database