Finally got the activejdbc model working with database including relation