Drugs that affect bone mineral homeostasis and treatment of osteoporosis