Set resources.db.params.persistent = true let db not to connect every time