Database log and pool connection