make own SQL layer for more verstatility