updated db and some login changes