Using Postgresql and relational databases