Fix request persistence and db connection