Added simple functions to insert/check for files in database
Added code to enable/disable printing of SQL statements
Implementation of saving trait.data/trait.mcmc/prior.distns/post.distns (redmine #1047)