What tool is used to program the logic for structuring data like Photo for Instagram?

SQLHTMLCSS

Good stuff!

SQL is a tool used to structure databases.