Removed xPapers dependencies, fixed bug with comments index, fixed bug with  being reassigned as scalar, made database configurable