Add asyn and loading when connect to database