Framework and db driver BugFixes