Rewritten most of the inner db structure for case insensitive and search abilities