Added logout, mysqli as db,class friend implemented