Fix logging issue with exceptions
Re-implement postgresql database system without slick. It was giving me too much problems