Make order field a database index.
Use aggregate Max to fetch new order value.
Merge pull request #7 from fladi/aggregate

Make "order" field an index and use Max aggregate to find next order value.