Moving logging to a database and increase verbosity