fix double connect db and max fps