DDBNEXT-27: refactor code

  - remove unused functions
  - remove console.log