Remove gateway pattern code. Add sqlite comment gateway test.