Changed DB from sqlight to postgresql