added: logging; commented: db connection