Changed gallery functionality, waiting for user authentication to change references to owner back from gallery.id to user_id