change connect to db and add set permission for user