Adding validation to pay and invoice routes, Adding config for dbName

 * Added two new configs: dbName and the insight object
 * Validating routes against invalid invoiceIds