logging database connections