fix data importing for various database drivers