fix whitespace in sqlite init
print node not found error if condition met
no need for <memory> header
clarify comment
fix SQL and add debugging messages