Add init script

Added an initializer script that manages the database. Also added a
gitignore file which should keep the database and constructed trees out
of my hair.