Complete integration with Data Base.
I had some issue with previous commit, so i made revert. Current commit
resolve all previous issue.