DB update

*database update is performed after the first successful login, as is
not performed after each new login