[+BUGFIX] Use database and frontend controller to connect the customer

close #1