Adding configure option for database file and build step to make it

Addresses #39 and #40.