Logging de database in