Latest version

Added login, sql, reduced Nagamaki and many other fixes