changed locahost in sql file to dbhostname
get the hostname from facter instead of dbhost
Change facter stuff