* Some changes to database.js: Triggers for FTS were not being created properly * Misc fixes & improvements