Database creation and analysis tool