move *.sql to sql/
cache refactor
cache.c hot fix