restructered database from polymorphism to STI for posts and shares