connect PostgreSQL buttons