fixed collation in database logging tables, extracted configure_endpoint, tail_console