added removal of not owned stock entries from database