readded Postgresql module and tests