Update index.js

Made it so self.database(name) return full path to database.