Scripts improvements
Added sqlite layer