Fixed the Database error with reconection configuration