ADDED: support for 2.2 version 1.2.3

Added support for 2.2 and fixed some database related issues.