[~TASK] Implemented additional db layer

Added customizations to Zend\Db to get rid of flaws and major issues