Added console commands to the global database lua for testing,
Fixed the hook calling again.