Fixed relative paths.  Added date insert functionality to db.api