fixes in categories
media uploads are moved per domain
fix in get_picture
fixes
fixes
fix of ORM port #260