Started to implement DB stuff... Unfortunately sql2o sucks when it comes to foreign keys ....