New functionality to manageDB

Added function to merge databases
Added function to get mac from a given ID
Added function to get Id from a given mac