database has logging