Revert "Revert "Backend for trips""

This reverts commit 0e2063f3aa33df9c5654347ea2366c73e29a977e.