scala jdbc abstraction