private contains-methods added for database