SMS: PostgreSQL server programming