Doctrine 2 - ORM

review all sql to ensure that it works with concurrent requests