insert and lookup functions should be working now