Database and debug