Changed remember textfile to access database for autologin