Fix Database Connection