Connect to the database first before trying to reset password