API addition
Fixed DB insertions
fixes to timing