Fix bug and setup initial metrics integration on database screen