Update path and documentation, also rewrite db config to support many database engine