Updated Project (took stuff from SmartHome)
TODO: Fix HibernateException.