sql search and todo

Signed-off-by: constpetrov <constant.petrov@gmail.com>