Introducing locales and template parsing (basics)
+ fixing some bugs in SqlManager class