added sql helpers