Made database multithreaded and cleaned up its structure
Added ability to update database as well as general coercion of 'lambda x : exp' expressions into Func and ValueFunc