Logic fixes (Important)

Integration of characterid fallback from userid
Also reverted NHibernate to local user and pass bc mutt has gone MIA