updated gems, created photo and avatar tables