Small fixes: db pagination, curl ssl checking