Added tests and views for trips and bonds, and connected to database