Greatly improve crossprod

Use new SQL functions to help improve the performance

Verified on DCA.

Also fixed a bug in delete (temporary tables cannot be deleted through
delete,db.data.frame-method)