add login and db