If you are upgrading, the phonebook application will do the migration for you with no intervention from your part. Just run "make" and then load the phonebook from your web browser.
If its a new install, it will also use the asterisk database by default.
Best regards,