add Random Int for ID and query for id in dataBase if it exist