Database analyzer