Refactored db to allow self relation of application entities. BUSY WITH A MAJOR REFACTOR OF THE DAOs. ALL EJB ARE BROKEN. PLEASE BE AWARE, WILL RESOLVE IN NEXT COMMIT. This refactor it to improve the data consitance and allow proper role back support