trying to fix addDevice dunction in DatabaseJSFManagedBean- in progress