fully enable hotp
make optional logging newlines
close the connection when we are done in main
create a db module