remove wrong and unnecessary join
fix wrong error message
properly escape "created" URL
implement querying for older versions and allow ordering by versionTo