Fixed errors in schema, dependant tables first
working business loging with all server INSERTS