Fixed bug with new DbAdapter