Tweaked photos schema and added attachment relations table between post and photos