Fix the check on IDs upon callback.
Add dependencies to PostgreSQL.