Clean up usage of doubles in database_spec