Render galleries from the database