Refixed of Database connection