Modified db_models to support multiple foreign keys to the same table. Added friend tests to db_manager_tests.