deleted lots of shit, added postgresql support :D