add: basic macro support fix: database locking with lock-pointer fix: memory leaks
add: more efficient relay loading (only ids)