Enhance registration: fix travis connect to DB failure