finish login and db server