Added add_spin and tests to db