Added database php to login/logout