Checks if the element is already in a database.
True if an element with given id is in a database, false - otherwise.