Just a little tip for when designing databases in MySQL.
Do NOT name fields to "read","write" or "delete".

I'm working on a mediabank project where I wan't to set permissions to each user for every object that is being created. The permissions are, as you might figure out, read/write/delete. But MySQL return a 1064 error when executing a query like "select userId from objectaccess where read=1".

I think have to drink more coffee before I start to code the next time.... =)