Fix db's connection